package com.linsir.config;

import com.jfinal.kit.PathKit;
import com.linsir.common.utils.xx;

import java.io.File;

/**
 * @author Administrator
 * @title: EovaConst
 * @projectName linsir-mu
 * @description: TODO
 * @date 2021/12/20:05
 */
public class EovaConst {

    /** 默认 数据源名称 **/
    public static final String DS_MAIN = "main";
    /** EOVA 数据源名称 **/
    public static final String DS_EOVA = "eova";
    /** Oracle 默认Sequence前缀 **/
    public static final String SEQ_ = "seq_";

    /** 登录用户标识 **/
    public static final String USER = "user";

    /** 本地语言标识 **/
    public static final String LOCAL = "local";

    /** Cache Key 所有菜单信息 **/
    public static final String ALL_MENU = "all_menu";

    /** 默认超级管理员角色(创建菜单自动给角色授权) **/
    public static final int ADMIN_RID = xx.getConfigInt("admin_rid", 1);

    /** WebApp 根目录 **/
    public static final String DIR_WEB = PathKit.getWebRootPath() + File.separator;

    /** 插件目录 **/
    public static final String DIR_PLUGINS = PathKit.getWebRootPath() + File.separator + "plugins" + File.separator;

    /** Eova插件包URL **/
    public static final String PLUGINS_URL = "http://7xign9.com1.z0.glb.clouddn.com/eova_plugins.zip";

    /** 上传图片大小上限(单位:M) **/
    public static final int UPLOAD_IMG_SIZE = 10;

    /** 虚拟字段标识 **/
    public static final String VIRTUAL = "virtual";
}
